
<visualization-editor
  ng-if="editorMode===true"
  vis="vis"
  vis-data="visData"
  ui-state="uiState"
  class="vis-editor-content"
  search-source="savedObj.searchSource"
  show-spy-panel="shouldShowSpyPanel()"
/>
<visualization
  ng-if="editorMode!==true"
  class={{vis.type.name}}
  vis="vis"
  vis-data="visData"
  ui-state="uiState"
  search-source="savedObj.searchSource"
  show-spy-panel="shouldShowSpyPanel()"
/>
